package com.bdqn.bookshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.bookshop.entity.AdminUser;
import com.bdqn.bookshop.utils.Result;

public interface AdminUserService extends IService<AdminUser> {

    /**
     * 管理员登陆
     * @param adminUser
     * @return
     */
    public Result<AdminUser> getAdminUser(AdminUser adminUser);

    /**
     * 判断原密码是否正确
     * @param id
     * @param pass
     * @return
     */
    Result isPasCorrect(Integer id,String pass);

    /**
     * 修改用户名或昵称
     * @param adminUser
     * @return
     */
    Result updateName(AdminUser adminUser);

    /**
     * 修改密码
     * @param id
     * @param orPass
     * @param newPass
     * @param confirmPass
     * @return
     */
    Result updatePass(Integer id,String orPass,String newPass,String confirmPass);


}
